package com.example.demo1115.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestController {
    @RequestMapping("index")
    public String index(Model model){
        model.addAttribute("msg" , "Hello");
        return "index";
    }
}

